
<!-- saved from url=(0056)http://www.zhuanzhuanduo.com/member/shopaccount_edit.php -->
<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
	<body>
	<form class="form-horizontal" action="http://www.zhuanzhuanduo.com/member/shopaccount_edit.php#" method="post" id="form2">
    <input type="hidden" name="shopId" value="">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
            <h4 class="modal-title" id="myModalLabel">增加绑定店铺</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>请选择平台</label>
                <div class="col-sm-10">
                    <select class="form-control" id="shopFrom" name="shopinfo[type]">
                        <!--<option value="">&#45;&#45;请选择&#45;&#45;</option>-->
                        <option value="taobao">淘宝</option>
                        <option value="tmall">天猫</option>
                        <option value="pdd">拼多多</option>
                        <!--<option value="3">京东</option>-->
                        <!--<option value="4">阿里巴巴</option>-->
                        <!--<option value="5">拼多多</option>-->
                        <!--<option value="6">美丽说</option>-->
                        <!--<option value="7">蘑菇街</option>-->
                        <!--<option value="8">网易考拉</option>-->
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>店铺名称：</label>
                <div class="col-sm-10 clearfix">
                    <input type="text" name="shopinfo[shopname]" id="shopName" class="pull-left form-control" value="" style="width: 50%;">
                    <p class="pull-left" style="padding-top: 8px;margin-left: 5px">
                        (务必跟手机端宝贝页显示的店铺名一致)
                    </p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>店铺首页网址：</label>
                <div class="col-sm-10 clearfix">
                    <input type="text" name="shopinfo[url]" id="shopUrl" class="pull-left form-control" value="" style="width: 60%;">
                    <p></p>
                    <p class="pull-left" style="padding-top: 8px;margin-left: 5px">
                        (店铺地址绑定后无法修改)
                    </p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>店铺主旺旺ID：</label>
                <div class="col-sm-10 clearfix">
                    <input type="text" name="shopinfo[wwid]" class="pull-left form-control" value="" style="width: 50%;" id="shopUniqueId">
                    <p class="pull-left" style="padding-top: 8px;margin-left: 5px">
                        (店铺主旺旺ID绑定后无法修改)
                    </p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>发货地：</label>
                <div class="col-sm-10 clearfix">
                    <!--<select class="form-control pull-left" style="width: 25%;margin-right: 10%" id="province" name="province">-->
                    <!--</select>-->
                    <!--<select class="form-control pull-left" style="width: 25%;margin-right: 10%" id="city" name="city">-->
                    <!--<option value="">地级市</option>-->
                    <!--</select>-->
                    <!--<select class="form-control pull-left" style="width: 25%" name="area" id="area">-->
                    <!--<option value="">市、县级市</option>-->
                    <!--</select>-->
                    
                        <div data-toggle="distpicker">
                            <div class="">
                                <label class="sr-only" for="province1">Province</label>
                                <select class="form-control pull-left" id="province1" style="width: 20%;margin-right: 5%" name="province" data-province=""></select>
                            </div>
                            <div class="">
                                <label class="sr-only" for="city1">City</label>
                                <select class="form-control pull-left" id="city1" style="width: 20%;margin-right: 5%" name="city" data-city=""></select>
                            </div>
                            <div class="">
                                <label class="sr-only" for="district1">District</label>
                                <select class="form-control pull-left" id="district1" style="width: 20%" name="area" data-district=""></select>
                            </div>
                        </div>
                    
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>街道地址：</label>
                <div class="col-sm-10 clearfix">
                    <input type="text" name="address" class="pull-left form-control" style="width: 60%;" id="address" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span style="color: #ff0000">*</span>发货电话：</label>
                <div class="col-sm-10 clearfix">
                    <input type="text" name="phone" class="pull-left form-control" style="width: 30%;" id="phone" value="">
                </div>
            </div>
            <div class="form-group">
                <p class="col-sm-10 col-sm-offset-2">
                    (若无法选择请按Ctrl+F5键强制刷新页面，或者选用Chrome浏览器重试)
                </p>
            </div>
        </div>
        <div class="modal-footer" style="text-align: center;">
            <input type="hidden" name="dosubmit" value="绑定店铺">
            <button type="submit" class="btn btn-default" id="shop-edit-btn">
                <span class="glyphicon glyphicon-ok" style="color: green"></span>&nbsp;确认提交
            </button>
            <button type="button" class="btn btn-default" data-dismiss="modal">
                <span class="glyphicon glyphicon-remove" style="color: #ff0000"></span>&nbsp;取消退出
            </button>
        </div>
    </div></form>

<!--<link href="http://www.jq22.com/jquery/bootstrap-3.3.4.css" rel="stylesheet">-->
<!--<script src="http://www.jq22.com/jquery/1.11.1/jquery.min.js"></script>-->
<!--<script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>-->
<script src="js/distpicker.data.js"></script>
<script src="js/distpicker.js"></script>
<script src="js/main.js"></script>
<script>
    $("#form2").validate({
        validClass : 'checked',
        rules : {
            shopFrom : {
                required : true
            },
            "shopinfo[shopname]" : {
                required : true,
                maxlength : 50
            },
            "shopinfo[url]" : {
                required : true,
                maxlength : 500
            },
            "shopinfo[wwid]" : {
                required : true,
                maxlength : 50
            },
            address : {
                required : true
            },
            phone : {
                required : true
            }
        },
        messages : {},
        submitHandler : function(form) {
            $('#shop-edit-btn').attr('disabled', true);
            var data = $('#form2').serialize();
            Call.ajaxSend('/member/shopaccount_edit.php', data, function(d) {
                if (d.success == true) {
                    Call.httpLoad();
                } else {
                    layer.msg(d.msg);
                    $('#shop-edit-btn').attr('disabled', false);
                }
            });
        },
        errorPlacement : function(error, element) {
            if (element.is(":radio"))
                error.appendTo(element.parent().next().next());
            else if (element.is(":checkbox"))
                error.appendTo(element.next());
            else {
                error.appendTo(element.closest(".form-group"));
            }
        },
        success : function(label) {
            label.remove();
        }
    });
    getProvince('', '', '');
</script></body></html>